import wx

class Example(wx.Frame):
    def __init__(self, parent, title):
        super(Example, self).__init__(parent, title=title, size=(350,250))
        self.InitUI()
    def InitUI(self):
        self.panel = wx.Panel(self)
        self.LoadImages()
        self.a.SetPosition((20,20))
        self.b.SetPosition((80,80))
        self.c.SetPosition((140,140))
    def LoadImages(self):
        self.a = wx.StaticBitmap(self.panel, wx.ID_ANY, wx.Bitmap('a.jpg', wx.BITMAP_TYPE_ANY))
        self.b = wx.StaticBitmap(self.panel, wx.ID_ANY, wx.Bitmap('b.jpg', wx.BITMAP_TYPE_ANY))
        self.c = wx.StaticBitmap(self.panel, wx.ID_ANY, wx.Bitmap('c.jpg', wx.BITMAP_TYPE_ANY))
def main():
    app = wx.App()
    frame = Example(None, title='绝对定位')
    frame.Show()
    app.MainLoop()

if __name__ == '__main__':
    main()
